﻿using Autofac;
using NLua;

namespace Ensemble_Windows
{
    /// <summary>
    /// 主游戏类
    /// </summary>
    public class Game : Direct2D1Render
    {
        /// <summary>
        /// lua状态
        /// </summary>
        public Lua Lua_state { get; set; }
        /// <summary>
        /// 是否Debug
        /// </summary>
        public bool IsDebug { get; set; }
        /// <summary>
        /// Debug文字
        /// </summary>
        private Text DebugText { get; set; }

        private string Value { get; set; }
        private static IContainer Container { get; set; }

        /// <summary>
        /// 初始化游戏
        /// </summary>
        /// <param name="configuration">配置</param>
        protected override void Initialize(Configuration configuration)
        {
            base.Initialize(configuration);
            Lua_state = new Lua();
        }

        protected override void Update(Time time)
        {
            base.Update(time);
        }

        protected override void Draw(Time time)
        {
            base.Draw(time);
        }
    }
}
